<extend name="Public:form_dialog_layout"/>
	<block name="dialog_edit">
          <table class="table table-condensed table-hover" width="100%">
           <tbody>
			<tr><td>
               <label for="j_name" class="control-label x85">上级权限：</label><select  name="pid" data-toggle="selectpicker" data-rule="required">
               <option  value="0">顶级</option>
	          <foreach name="list" item="v">
               <option <if condition="$v.id EQ $Rs['pid'] ">selected value="{$Rs['pid']}" <else/>value="{$v.id}"</if> >
             	<switch name="v.level">  <case value="0">+</case> <case value="1">+--</case><case value="2">+------</case><default /></switch>
	           {$v.title} <if condition="$v.status EQ 1 "><else/><font color=red>[未启用]</font></if>
	           </option>
              </foreach>
             </select>
            </td></tr>
            <tr><td>
                <label for="j_title" class="control-label x85">权限名称：</label>
                <input type="text" data-rule="required" size="30" name="title" id="j_title" value="{$Rs['title']}" >
            </td></tr>
            <tr><td>
                <label for="j_title" class="control-label x85">权限网址：</label>
                <input type="text" data-rule="required" size="30" name="name" id="j_name" value="{$Rs['name']}" >
				<span>模块/动作/方法</span>
            </td></tr>
            <tr><td>
                <label for="j_status" class="control-label x85">是否启用：</label>
               <select name="status"  data-container="body"  id="j_status" data-toggle="selectpicker" data-rule="required">
			    <if condition="$Rs['status'] EQ 1 || $Rs['status'] EQ ''"><option value="1" selected>启用</option><else/><option value="0" selected>禁用</option></if>
                <option value="1">启用</option>
                <option value="0">禁用</option>
                 </select>
             </td></tr>
              <tr><td>
                <label for="j_sort" class="control-label x85">排序：</label>
                <input type="text"  size="5" data-toggle="spinner" data-min="0" data-max="100" data-step="1" data-rule="integer" name="sort" id="j_sort" value="{$Rs['sort']}" >
            </td></tr>
            </tbody>
            </table>
    </block>


			
			